package interface01;

public class Test {
    public static void main(String[] args) {
        Rabbit rabbit = new Rabbit("兔兔",5);
        rabbit.eat();
        System.out.println(rabbit.getName() + ", " + rabbit.getAge());
        Dog dog = new Dog("小黄",6);
        dog.eat();
        dog.swim();
        System.out.println(dog.getName() + ", " + dog.getAge());
    }
}
